package org.example.ymcc.service;

import com.alibaba.fastjson.JSONObject;
import org.example.ymcc.domain.Course;
import com.baomidou.mybatisplus.extension.service.IService;
import org.example.ymcc.dto.CourseAddDto;
import org.example.ymcc.result.JsonResult;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zcj
 * @since 2024-06-11
 */
public interface ICourseService extends IService<Course> {

    void updateById(CourseAddDto course);

    void save(CourseAddDto course, JSONObject currentLogin );

    JsonResult getDetail(Long courseId);

    JsonResult onLineCourse(List<Long> ids);

    JsonResult getDetailData(Long courseId);

    JsonResult info(List<Long> courseIds);
}
